﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001151 RID: 4433
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetFriendMarkCsReq : IMessage<SetFriendMarkCsReq>, IMessage, IEquatable<SetFriendMarkCsReq>, IDeepCloneable<SetFriendMarkCsReq>, IBufferMessage
	{
		// Token: 0x1700381A RID: 14362
		// (get) Token: 0x0600C65E RID: 50782 RVA: 0x002176A5 File Offset: 0x002158A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetFriendMarkCsReq> Parser
		{
			get
			{
				return SetFriendMarkCsReq._parser;
			}
		}

		// Token: 0x1700381B RID: 14363
		// (get) Token: 0x0600C65F RID: 50783 RVA: 0x002176AC File Offset: 0x002158AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetFriendMarkCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700381C RID: 14364
		// (get) Token: 0x0600C660 RID: 50784 RVA: 0x002176BE File Offset: 0x002158BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetFriendMarkCsReq.Descriptor;
			}
		}

		// Token: 0x0600C661 RID: 50785 RVA: 0x002176C5 File Offset: 0x002158C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendMarkCsReq()
		{
		}

		// Token: 0x0600C662 RID: 50786 RVA: 0x002176CD File Offset: 0x002158CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendMarkCsReq(SetFriendMarkCsReq other) : this()
		{
			this.isSetMark_ = other.isSetMark_;
			this.uid_ = other.uid_;
			this.reason_ = other.reason_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C663 RID: 50787 RVA: 0x0021770A File Offset: 0x0021590A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendMarkCsReq Clone()
		{
			return new SetFriendMarkCsReq(this);
		}

		// Token: 0x1700381D RID: 14365
		// (get) Token: 0x0600C664 RID: 50788 RVA: 0x00217712 File Offset: 0x00215912
		// (set) Token: 0x0600C665 RID: 50789 RVA: 0x0021771A File Offset: 0x0021591A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSetMark
		{
			get
			{
				return this.isSetMark_;
			}
			set
			{
				this.isSetMark_ = value;
			}
		}

		// Token: 0x1700381E RID: 14366
		// (get) Token: 0x0600C666 RID: 50790 RVA: 0x00217723 File Offset: 0x00215923
		// (set) Token: 0x0600C667 RID: 50791 RVA: 0x0021772B File Offset: 0x0021592B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x1700381F RID: 14367
		// (get) Token: 0x0600C668 RID: 50792 RVA: 0x00217734 File Offset: 0x00215934
		// (set) Token: 0x0600C669 RID: 50793 RVA: 0x0021773C File Offset: 0x0021593C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Reason
		{
			get
			{
				return this.reason_;
			}
			set
			{
				this.reason_ = value;
			}
		}

		// Token: 0x0600C66A RID: 50794 RVA: 0x00217745 File Offset: 0x00215945
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetFriendMarkCsReq);
		}

		// Token: 0x0600C66B RID: 50795 RVA: 0x00217754 File Offset: 0x00215954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetFriendMarkCsReq other)
		{
			return other != null && (other == this || (this.IsSetMark == other.IsSetMark && this.Uid == other.Uid && this.Reason == other.Reason && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C66C RID: 50796 RVA: 0x002177B0 File Offset: 0x002159B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsSetMark)
			{
				num ^= this.IsSetMark.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.Reason != 0U)
			{
				num ^= this.Reason.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C66D RID: 50797 RVA: 0x00217821 File Offset: 0x00215A21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C66E RID: 50798 RVA: 0x00217829 File Offset: 0x00215A29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C66F RID: 50799 RVA: 0x00217834 File Offset: 0x00215A34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Reason != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Reason);
			}
			if (this.IsSetMark)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.IsSetMark);
			}
			if (this.Uid != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Uid);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C670 RID: 50800 RVA: 0x002178AC File Offset: 0x00215AAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsSetMark)
			{
				num += 2;
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.Reason != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Reason);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C671 RID: 50801 RVA: 0x00217910 File Offset: 0x00215B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetFriendMarkCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsSetMark)
			{
				this.IsSetMark = other.IsSetMark;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.Reason != 0U)
			{
				this.Reason = other.Reason;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C672 RID: 50802 RVA: 0x00217974 File Offset: 0x00215B74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C673 RID: 50803 RVA: 0x00217980 File Offset: 0x00215B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Uid = input.ReadUInt32();
						}
					}
					else
					{
						this.IsSetMark = input.ReadBool();
					}
				}
				else
				{
					this.Reason = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004FCF RID: 20431
		private static readonly MessageParser<SetFriendMarkCsReq> _parser = new MessageParser<SetFriendMarkCsReq>(() => new SetFriendMarkCsReq());

		// Token: 0x04004FD0 RID: 20432
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004FD1 RID: 20433
		public const int IsSetMarkFieldNumber = 6;

		// Token: 0x04004FD2 RID: 20434
		private bool isSetMark_;

		// Token: 0x04004FD3 RID: 20435
		public const int UidFieldNumber = 8;

		// Token: 0x04004FD4 RID: 20436
		private uint uid_;

		// Token: 0x04004FD5 RID: 20437
		public const int ReasonFieldNumber = 2;

		// Token: 0x04004FD6 RID: 20438
		private uint reason_;
	}
}
